package com.enzoism.springboot.fastjson.a04transfer;

public class DiveClass {


    public InterfaceA interfaceAImpl() {
        return new InterfaceAImpl();
    }

    public InterfaceB interfaceBImpl() {
        return new InterfaceBImpl();
    }

    private class InterfaceAImpl implements InterfaceA {
        @Override
        public void printA() {
            System.out.println("-------->接口A实现类");
        }
    }

    protected class InterfaceBImpl implements InterfaceB {
        @Override
        public void printB() {
            System.out.println("-------->接口B实现类");
        }
    }


}
